package com.esd.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.esd.crm.entity.Doc;

@Mapper
public interface DocMapper {
	
	//选择1至多个项目，一口气删除
	boolean deleteBatch(String[] ids);
	
    boolean deleteByPrimaryKey(String id);

    int insert(Doc record);

    //完整的插入，创建一个新的信息条
    boolean insertSelective(Doc record);
    
    List<Doc> findAll(Doc doc);

    Doc selectByPrimaryKey(String id);
    
    Doc findOneByDocName(String name);
    
    //根据id查信息
    Doc findOneByDocId(String id);
    
    List<Doc> findOneByDocId1(String id);

    boolean updateByPrimaryKeySelective(Doc record);

    boolean updateByPrimaryKey(Doc record);
    
    
    
}